﻿using System;

namespace VisualPureBasicIDE.CoreGUI
{
    public static class EventManager
    {
        public static event EventHandler CopyContent;
        public static event EventHandler CutContent;
        public static event EventHandler PasteContent;
        public static event EventHandler UndoLastAction;
        public static event EventHandler RedoLastAction;
        public static event EventHandler DeactivateUndo;
        public static event EventHandler ActivateUndo; 
        public static event EventHandler DeactivateRedo;
        public static event EventHandler ActivateRedo;

        public static void OnCopyContent(object sender, EventArgs e)
        {
            if (CopyContent != null) CopyContent(sender, e);
        }

        public static void OnPasteContent(object sender, EventArgs e)
        {
            if (PasteContent != null) PasteContent(sender, e);
        }

        public static void OnCutContent(object sender, EventArgs e)
        {
            if (CutContent != null) CutContent(sender, e);
        }

        public static void OnUndoLastAction(object sender, EventArgs e)
        {
            if (UndoLastAction != null) UndoLastAction(sender, e);
        }

        public static void OnRedoLastAction(object sender, EventArgs e)
        {
            if (RedoLastAction != null) RedoLastAction(sender, e);
        }

        public static void OnDeactivateUndo(object sender, EventArgs e)
        {
            if (DeactivateUndo != null) DeactivateUndo(sender, e);
        }

        public static void OnActivateUndo(object sender, EventArgs e)
        {
            if (ActivateUndo != null) ActivateUndo(sender, e);
        }

        public static void OnDeactivateRedo(object sender, EventArgs e)
        {
            if (DeactivateRedo != null) DeactivateRedo(sender, e);
        }

        public static void OnActivateRedo(object sender, EventArgs e)
        {
            if (ActivateRedo != null) ActivateRedo(sender, e);
        }
    }
}